package com.youpai.platform.wallet.service.mapper;


import com.youpai.platform.wallet.service.entity.po.WalletRecordPO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @date: 2022/7/11 11:16
 * @author: Anna
 * @version: 1.0
 * @description: 账户mapper
 */
@Repository
public interface WalletRecordMapper {

    /**
     * 根据uid查询钱包日志
     *
     * @param uid       uid
     * @param startTime 开始时间
     * @param endTime   结束时间
     * @return 钱包日志
     */
    List<WalletRecordPO> queryWalletRecordByUid(@Param(value = "uid") Long uid, @Param(value = "startTime") Date startTime, @Param(value = "endTime") Date endTime);

    /**
     * 新增钱包变更记录
     *
     * @param walletRecordPO 钱包变更记录
     * @return 增加结果
     */
    int insertWalletRecord(@Param(value = "walletRecordPO") WalletRecordPO walletRecordPO);
}
